home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0697.zip / WIESMAN.ZIP / DIALCTRL.H < prev    next >
C/C++ Source or Header  |  1997-01-20  |  1KB  |  55 lines

  1. // DialCtrl.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CDialControl window
  6.  
  7. // dial notification codes
  8. #define DN_UP        1
  9. #define DN_DOWN        2
  10. #define DN_CLICK    3
  11.  
  12. class CDialControl : public CWnd
  13. {
  14. // Construction
  15. public:
  16.     CDialControl();
  17.  
  18. // Attributes
  19. public:
  20.     int        m_nValue;
  21.     int        m_nMax;
  22.     int        m_nMin;
  23.     int        m_nRate;
  24.     BOOL    m_bDragging;
  25. // Operations
  26. public:
  27.     void GetLinePoints(int nLength, int nPercent, CPoint &point1, CPoint &point2);
  28.     void CalculateValFromPoint(CPoint point);
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CDialControl)
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. public:
  37.     virtual ~CDialControl();
  38.  
  39.     // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CDialControl)
  42.     afx_msg void OnPaint();
  43.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  44.     afx_msg void OnKillFocus(CWnd* pNewWnd);
  45.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  46.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  47.     afx_msg UINT OnGetDlgCode();
  48.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  49.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  50.     //}}AFX_MSG
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.